<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@ taglib uri="http://www.springframework.org/tags" prefix="spring" %>
<%@ taglib uri="http://code.google.com/p/jmesa" prefix="jmesa" %>


<%
//org.springframework.web.servlet.LocaleResolver localeResolver = org.springframework.web.servlet.support.RequestContextUtils.getLocaleResolver(request);
/*java.util.Locale _currentLocale = java.util.Locale.US;
String _localeAsString = "en_US";
if(localeResolver!=null){
	if(session!=null){
   		_currentLocale= localeResolver.resolveLocale(request);
   		_localeAsString = _currentLocale.toString();
	}
}*/


//get browser name
String agent = request.getHeader("USER-AGENT");
String browserName="None";
if (null != agent && -1 != agent.indexOf("MSIE")) { 
	//System.out.println("BrowserName:MSIE");
	browserName="MSIE";
} else if (null != agent && -1 != agent.indexOf("Firefox")) { 
	//System.out.println("BrowserName:Firefox");
	browserName="Firefox";
} else if (null != agent && -1 != agent.indexOf("Safari")) { 
	//System.out.println("BrowserName:Safari");
	browserName="Safari";
} else {
	//System.out.println("BrowserName:None");
}
%>

<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<c:set var="browserName" value="<%=browserName%>"/>

